<?php

require_once dirname(__FILE__).'/../lib/BasesfGuardUserActions.class.php';

/**
 * sfGuardUser actions.
 *
 * @package    sfGuardPlugin
 * @subpackage sfGuardUser
 * @author     Fabien Potencier
 * @version    SVN: $Id: actions.class.php 12965 2008-11-13 06:02:38Z fabien $
 */
class sfGuardUserActions extends basesfGuardUserActions
{
    public function preExecute() {
	$admin = sfConfig::get('app_admin_only', 'no');
	if (($admin) && (!$this->getUser()->getGuardUser()->hasPermission("administration")))
	    return $this->forward("sfGuardAuth", "secure");
	parent::preExecute();
    }
}
